package polymorphism;

public class Animal {
    public void shout(){
        System.out.println("Animal is shouting");
    }
}

class Dog extends Animal{
    public void shout(){
        System.out.println("Dog is barking");
    }

    public void seeDoor(){
        System.out.println("Dog is seeing door");
    }
}

class Cat extends Animal{
    public void shout(){
        System.out.println("Cat is meowing");
    }

    public void catMouse(){
        System.out.println("Cat is catching mouse");
    }
}
